#cmake file
#author:edward
#created:2015-10-24

INCLUDE_DIRECTORIES(
	"${PROJECT_SOURCE_DIR}/src/public"
	"${PROJECT_SOURCE_DIR}/src/product"
	)

AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/src/product PRODUCT)
AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/src/public/tinyxml TINYXML)

ADD_LIBRARY(product SHARED 
	${PUBLIC}
	${TINYXML}
	${PRODUCT}
	)

LINK_DIRECTORIES(/usr/local/lib)
TARGET_LINK_LIBRARIES(product -lcurl)
TARGET_LINK_LIBRARIES(product -ljson)

SET(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/build/linux")